<!DOCTYPE html>
<html lang="en">

<head>
	<meta charset="UTF-8" />
	<script></script>
	<title></title>
	<style>
		h1 {
			padding-left: 35px;
			font-size: 16px;
			font-weight: 600;
		}

		.form {
			padding: 20px 0;
			display: flex;
			align-items: center;
			flex-wrap: wrap;
		}

		.form .form-i {
			font-size: 14px;
			min-width: 33%;
			color: #909090;
			margin-bottom: 20px;
		}

		.form .form-i span {
			display: inline-block;
			width: 98px;
			text-align: right;
			margin-right: 20px;
			color: #333;
		}

		.tables {
			margin: 25px 35px;
			font-size: 14px;
			border-bottom: 1px solid #dddddd;
			border-left: 1px solid #dddddd;
			display: grid;
		}

		.tables .th {
			height: 40px;
			line-height: 40px;
			font-weight: 600;
			background: #e8e8e8;
			display: flex;
			align-items: center;
			text-align: center;
		}

		.tr {
			min-height: 40px;
			height: auto;
			display: flex;
			align-items: center;
			text-align: center;
			border-top: 1px solid #dddddd;
		}

		.tables .th div,
		.tr div {
			padding: 0 2px;
			height: 100%;
			width: calc((100% - 17% - 70px)/3);
			border-right: 1px solid #dddddd;
			display: flex;
			align-items: center;
			justify-content: center;
		}

		.one {
			width: 70px !important;
		}

		.two {
			width: 17% !important;
		}
	</style>
</head>

<body>
	<h1>预约信息</h1>
	<div class='form'>
<!--		<div class='form-i'><span>医院</span> {$info['hospital']['title']}</div>-->
		<div class='form-i'><span>就诊人</span> {$info['jz']['name']}</div>
		<div class='form-i'><span>就诊时间</span> {$info['actiontime']}</div>
		<div class='form-i'><span>服务需求</span> {$info['content']}</div>
		<div class='form-i'>
			<div style="float: left;width: 98px;text-align: right;color: #333;">服务属性</div>
			<div style="float: left;margin-left: 20px;">
				<?php
					foreach($info['json_array'] as $key => $item) {
						echo $key.'：'.$item.'<br/>';
					}
				?>
			</div>
		</div>
	</div>
	<h1>订单信息</h1>
	<div class='form'>
		<div class='form-i'><span>订单类型</span> {$info['service']['title']}</div>
		<div class='form-i'><span>服务类型</span> {$info['service']['title']}</div>
		<div class='form-i'><span>订单状态</span> {$info['status_text']}</div>
		<div class='form-i'><span>下单时间</span> {$info['createtime_text']}</div>
		<div class='form-i'><span>服务开始时间</span> {$info['servicetime_text']}</div>
		<div class='form-i'><span>完成时间</span> {$info['endtime_text']}</div>
		<div class='form-i'><span>取消时间</span> {$info['canceltime_text']}</div>
		<div class='form-i'><span>订单编号</span> {$info['total_sn']}</div>
		<div class='form-i'><span>订单金额</span> ￥{$info['total_amount']}</div>
		<div class='form-i'><span>优惠券</span> ￥{$info['coupon_amount']}</div>
		<div class='form-i'><span>积分抵扣</span> ￥{$info['deduction_amount']}</div>
		<div class='form-i'><span>实付金额</span> ￥{$info['pay_amount']}</div>

		<div class='form-i'><span>服务陪诊师</span> {$info['escort']['nickname']}</div>
		<div class='form-i'><span>订单分佣</span> ￥{$info['commission']}</div>
		<div class='form-i'><span>取消退款手续费</span> ￥{$info['cancel_amount']}</div>
	</div>
	<h1>续费记录</h1>
	<div class='tables'>
		<div class='th'>
			<div class='one'>序号</div>
			<div class='two'>续费时间</div>
			<div>续费时长</div>
			<div>续费金额(元)</div>
			<div>续费分佣(元)</div>
		</div>
		<!-- 循环 -->
		{foreach $info['info'] as $v}

		<div class='tr'>
			<div class='one'>{$v['id']}</div>
			<div class='two'>{$v['paytime_text']}</div>
			<div>{$v['time']}</div>
			<div>￥{$v['renewal_amount']}</div>
			<div>￥{$v['commission']}</div>
		</div>
		{/foreach}
		<!-- 循环 -->
	</div>
	<h1>拒绝接单记录</h1>
	<div class='tables'>
		<div class='th'>
			<div class='one'>序号</div>
			<div class='two'>姓名</div>
			<div>手机号码</div>
			<div>拒绝理由</div>
			<div>拒绝时间</div>
		</div>
		<!-- 循环 -->
		{foreach $info['refuse'] as $v}
		<div class='tr'>
			<div class='one'>{$v['id']}</div>
			<div class='two'>{$v['id']}</div>
			<div>183479142765</div>
			<div>{$v['mark']}</div>
			<div>2023-02-14 13:32</div>
		</div>
		{/foreach}

		
		<!-- 循环 -->
	</div>

</body>

</html>